package club.baimahu.pencil.miaosha.mapper;

import club.baimahu.pencil.miaosha.domain.Stock;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * TODO
 *
 * @author zhanghongjiang
 * @version 1.0
 * @date 2021/9/13 16:07
 */
@Mapper
public interface StockMapper {

    Stock getStock(Integer id);

    int updateStock(Stock stock);

    int decreaseStock(int id);

    List<Integer> selectStockIds();
}
